import request from '@/utils/request';

export function pageList(query) {
  return request({
    url: '/api/client/list/page',
    method: 'get',
    params: query
  })
}

export function createClient(data) {
  return request({
    url: '/api/client',
    method: 'post',
    data
  })
}

export function updateClient(data) {
  return request({
    url: '/api/client/' + data.id,
    method: 'put',
    data
  })
}

export function deleteClient(data) {
  return request({
    url: '/api/client/' + data.id,
    method: 'Delete',
    data
  })
}
